package com.cainli.szbus.data.model;

import android.os.Parcel;
import android.os.Parcelable;

/**
 *result_num	 int	 结果数量	
 *web_url	 	 string	 爱帮web站对应url	
 *wap_url	     string	 爱帮wap站对应url	
 *name	         string	 站点名称	
 *xy	         string	 站点坐标	 半角逗号,(英文逗号)分隔
 *line_names	 string	 途径该站点的线路名称	 半角分号;(英文分号)分隔
 * @author cainli
 */
public class BusStat implements Parcelable {
	public String name;
	public String xy;
	public String lineNames;
	public BusStat() {
	}

	private BusStat(Parcel in) {
		name = in.readString();
		xy = in.readString();
		lineNames = in.readString();
	}

	@Override
	public int describeContents() {
		// TODO Auto-generated method stub
		return 0;
	}

	@Override
	public void writeToParcel(Parcel dest, int flags) {
		dest.writeString(name);
		dest.writeString(xy);
		dest.writeString(lineNames);
	}

	public static final Parcelable.Creator<BusStat> CREATOR = new Parcelable.Creator<BusStat>() {

		@Override
		public BusStat createFromParcel(Parcel source) {
			return new BusStat(source);
		}

		@Override
		public BusStat[] newArray(int size) {
			return new BusStat[size];
		}
	};
	@Override
	public String toString() {
		return "BusStats [name=" + name + ", xy=" + xy + ", lineNames="
				+ lineNames + "]";
	}
}
